package PlayerStates;

import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.plaf.basic.BasicOptionPaneUI.ButtonActionListener;

import GameFiles.StateBase;
import Gui.ButtonActionPanel;
import Gui.GameFrame;
import Gui.GamePanel;
import Gui.ImagePanel;
import Main.Defines;

public class InitialLoad extends StateBase
{

	private static InitialLoad ref;
	private static final Color FOREGROUND_COLOR = new Color(255, 0, 0);
	private static final Color BACKGROUND_COLOR = new Color(0, 0, 0);

	private InitialLoad()
	{
	}
	public static InitialLoad getInstance()
	{
		if (ref == null)
		{
			ref = new InitialLoad();
		}
		return ref;
	}

	@Override
	public boolean Draw(GameFrame gf)
	{
		// TODO Auto-generated method stub
//		gf.getContentPane().setBackground(BACKGROUND_COLOR);
//		JLabel topLabel = new JLabel("Initial Load", 0);
//		topLabel.setForeground(FOREGROUND_COLOR);
//		topLabel.setBounds(350, 0, 100, 10);
//		gf.getContentPane().add(topLabel);
		GamePanel.getInstance().update();
		GameFrame.getInstance().add(GamePanel.getInstance());
		GameFrame.getInstance().pack();
		
		return false;
	}
	@Override
	public boolean Enter()
	{
		// TODO setup menu bar
		
		GameFrame.getInstance().update();
		
		//ButtonActionPanel
		return false;
	}

	@Override
	public boolean Execute()
	{

		return false;
	}

	@Override
	public boolean Exit()
	{
		//GameFrame.getInstance().getContentPane().removeAll();
		return false;
	}

}
